package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.pojo.CacMinorItem;

import java.util.List;

public interface CacMinorItemMapper {
    int deleteByPrimaryKey(Integer minorItemId);

    int insert(CacMinorItem record);

    int insertSelective(CacMinorItem record);

    CacMinorItem selectByPrimaryKey(Integer minorItemId);

    int updateByPrimaryKeySelective(CacMinorItem record);

    int updateByPrimaryKey(CacMinorItem record);

    /**
     * 根据CacMinorItem查询CacMinorItem
     * author:liqian
     * date:2018-10-31 13:18
     */
    CacMinorItem selectByCmi(CacMinorItem cacMinorItem);

    /**
     * 根据大项id删除大项下面的小项
     * author:liqian
     * date:2018-10-31 14:50
     */
    int delByBid(Integer bigItemId);

    /**
     * 根据类别id删除小项
     * author:liqian
     * date:2018-10-31 15:55
     */
    int delByTypeId(Integer cacTypeId);
    /**
     * 批量添加小项
     * author:liqian
     * date:2018-11-23 11:58
     */
    int insertBatch(List<CacMinorItem> cacMinorItemList);
}